const express = require("express");
const Router = express.Router();

const { lookPic } = require("./lookPic");
const { upload } = require("./upload");
const { login } = require("./login");
const { register } = require("./register");
const { codeNum } = require("./codeNum");
const { delePic } = require("./delePic");

/**
 * 图片查看功能
 */
lookPic(Router);

/**
 * 图片上传功能
 */
upload(Router);
/**
 * 删除图片
 */
delePic(Router);
/**
 * 登录
 */
login(Router);

/**
 * 注册
 */
register(Router);
/**
 * 获得物品编号
 */
codeNum(Router);

module.exports = Router;
